home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / x10_xa04.zip / MONITOR.CMD < prev    next >
OS/2 REXX Batch file  |  1991-08-04  |  1KB  |  45 lines

  1. #=============================================================================
  2. #
  3. # This is an example COMMAND FILE that shows you how to use
  4. # XA's monitor mode. It assumes that the Basecode of your 
  5. # CP290 is set for "A". If that is not the case, then change
  6. # each of the "HOUSE A" tokens to whatever basecode it is set for. 
  7. # Then type:
  8. #    XA f=monitor.cmd
  9. #
  10. # and XA will wait for the CP290 to acknowledge an event. You
  11. # may press any of the keys on the CP290 to see the messages
  12. # on your screen. If you have Windows 3.0 (386 enhanced) this
  13. # program can be run as a background task.
  14. #
  15. #=============================================================================
  16. #
  17. #
  18. # The following list assigns a more descriptive text message 
  19. # to each module. For the monitor command to work properly,
  20. # you should use the tokens HOUSE and UNIT (rather than the
  21. # shortcut method) defining the module address.
  22. #
  23.  
  24. define Garage/Porch_Lights house a unit 1
  25. define Living_Room_Lamp house a unit 2
  26. define Bedroom_Lamp house a unit 3
  27. define Family_Room_Lamp house a unit 4
  28. define Flag house a unit 5
  29. define Plant_Grow_Lights house a unit 6
  30. define Basement_Computer house a unit 7
  31. define 386_Computer house a unit 8
  32.  
  33. #
  34. # The next command will inform XA to begin monitoring the 
  35. # communications ports for messages from the CP-290.
  36. #
  37.  
  38. MONITOR 
  39. LOG
  40.  
  41.  
  42.  
  43.  
  44.  
  45.